﻿CREATE PROCEDURE [dbo].[TempHistoryDetails_UpdateCategoryIds]
AS
	UPDATE TempHistoryDetails
	SET CategoryId = cat.Id
	FROM TempHistoryDetails t
	Inner join Categories cat on cat.Code = t.CategoryCode
